package dshop.model;

import java.util.Date;

import appbase.jfinal.ext.BaseModel;

public class Account extends BaseModel<Account>{
	
	private static final long serialVersionUID = -6967680902549117464L;
	
	public static final Account dao = new Account();

	//SEAL：封号； NORMAL：正常
	public static final String STATUS_SEAL = "SEAL";
	public static final String STATUS_NORMAL = "NORMAL";
	
	
	public static void setStatus(int accountId, String status) 
	{
		new Account().set("id", accountId)
					 .set("status", status)
					 .update();
	}


	public static void setCheckStatus(int accountId, String checkStatus, String remark) 
	{
		new Account().set("id", accountId)
		 			 .set("check_status", checkStatus)
		 			 .set("check_exception_explain", remark)
		 			 .set("check_date_time", new Date())
		 			 .update();
	}



}
